package cn.wx.org.domain;

import cn.wx.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    //编号
    private String sn;
    //名称
    private String name;
    //上级部门路径
    private String dirPath;
    //状态
    private String state;
    //部门领导id
    // 部门领导id  (employee)
    private Long manager_id;
    // employee对象  领导  manager_id
    private Employee manager;
    // 上级部门id
    private Long parent_id;
    private Department parent;
    // 子集部门
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Department> children = new ArrayList<>();



}
